package com.ops.service.ns.system.exception;


/**
 * Service Exception - Base Exception for all Custom Exceptions
 *
 * Copyright notice
 */
public class ServiceException extends Exception {

    private static final long serialVersionUID = 3595069780882304756L;
    private String errorCode; 
    
    public ServiceException() {
        super();
    }

    public ServiceException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public ServiceException(Throwable e) {
        super(e);
    }

    public ServiceException(String errorCode, String message, Throwable e) {
        super(message, e);
        this.errorCode = errorCode;
    }
    
    public String getErrorCode()
    {
    	return errorCode;
    }
    
}